#!/usr/bin/env python

import os
import sys
import platform
from colors import * #@UnusedWildImport

def aptInstall():
    ''' Installs dependencies using apt-get '''
    os.system('apt-get install python-beautifulsoup python-mechinize')

def checkRoot():
    if os.getuid() != 0:
        print R+' [!] You must run this script as root '+W
        sys.exit()

def checkPlatform():
    if platform.system() != 'Linux':
        print R+' [!] Sorry, this script currently only runs on Linux systems'+W
        sys.exit()

def checkPackageManager():
    reply = os.system('apt-get --version')
    if not len(reply) > 0:
        print R+' [!] It does not appear apt-get is installed!'+W

if __name__ == '__main__':
    checkPlatform()
    checkRoot()
    aptInstall()
